<template>
	<div id="app">
		<router-view v-if="pc_or_mobile"></router-view>
		<router-view name="mobile" v-else></router-view>
	</div>
</template>

<script>
import {hd} from '../utils/hd.js';
import VueRouter from 'vue-router'
import pcView from './components/pcView'
import mobileView from './components/mobileView'
const Hd = new hd;
const router= new VueRouter({
  routes: [
    {
      path: '/',
      components:{
        default: pcView,
        mobile: mobileView
      }
    },
  ]
});
export default {
	name: 'app',
	router,
	data() {
		return {
			pc_or_mobile: true,
		}
	},
	components: {},
	mounted() {
		this.pc_or_mobile = !Hd.pc_or_mobile()
		Hd.baidutongji()
		Hd.setUrlParam()
	}
};
</script>

<style>
#app {
}
</style>
